home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / netinclude / grp.h < prev    next >
C/C++ Source or Header  |  1994-04-07  |  850b  |  36 lines

  1. #ifndef GRP_H
  2. #define GRP_H
  3. /*
  4. **      $Filename: grp.h $
  5. **    $Release$
  6. **      $Revision: 3.3 $
  7. **      $Date: 1994/04/07 20:23:52 $
  8. **
  9. **    Definitions of gid_t and group structure for 32 bit C compilers
  10. **
  11. **    Copyright © 1993,1994 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  12. **                  Helsinki University of Technology, Finland.
  13. **                  All rights reserved.
  14. */
  15.  
  16. #ifndef SYS_TYPES_H
  17. #include <sys/types.h>
  18. #endif
  19.  
  20. /* The group structure */
  21. struct group {
  22.   char   *gr_name;              /* Group name.  */
  23.   char   *gr_passwd;            /* Password.    */
  24.   gid_t   gr_gid;               /* Group ID.    */
  25.   char  **gr_mem;               /* Member list. */
  26. };
  27.  
  28. struct group *getgrgid(gid_t gid);
  29. struct group *getgrnam(const char * name);
  30.  
  31. void setgrent(void);
  32. struct group *getgrent(void);
  33. void endgrent(void);
  34.  
  35. #endif /* GRP_H */
  36.